<?php

namespace App\Observers;

use Dcat\Admin\OperationLog\Models\OperationLog;

class OperationLogObserver
{
    public function creating(OperationLog $log)
    {
        $input = json_decode($log->input, true);
        unset($input['key']);
        $log->input = json_encode($input);
    }
}
